<?php


//客户管理
Route::get('customer/wuye','CustomerController@custWuye'); //物业
Route::get('customer/hangye','CustomerController@custHangye'); //行业
Route::get('customer/area','CustomerController@custArea'); //面积
Route::get('customer/xuqiu','CustomerController@custXuqiu'); //需求
Route::get('customer/peidian','CustomerController@custPeidian'); //配电
Route::get('customer/xiaofang','CustomerController@custXiaofang'); //消防
Route::get('customer/huanping','CustomerController@custHuanping'); //环评
Route::get('customer/source','CustomerController@custSource'); //资源
Route::get('customer/bigpart','CustomerController@bigpart'); //资源
Route::get('customer/group','CustomerController@group'); //资源
Route::middleware('jwt.auth')->group(function (){
    Route::post('customer/submitCustomer','CustomerController@submitCustomer'); //客户录入(提交)
    Route::get('customer/getCustomerDetails','CustomerController@getCustomerDetails'); //客户详情及跟踪记录
    Route::post('customer/shareCustomer','CustomerController@shareCustomer'); //客户分配
    Route::post('customer/shareUserMe','CustomerController@shareUserMe');//分配
    Route::post('customer/shareGroupCustomer','CustomerController@shareGroupCustomer'); //客户分配到组
    Route::post('customer/shareUserCustomer','CustomerController@shareUserCustomer'); //客户分配人员
    Route::post('customer/repeatShareUserCustomer','CustomerController@repeatShareUserCustomer'); //客户重新分配人员
    Route::post('customer/setCustomerRecords','CustomerController@setCustomerRecords'); //填写跟踪记录
    Route::post('customer/submitStatus','CustomerController@submitStatus'); //更新状态
    Route::get('customer/getUsers','CustomerController@getUsers');
    Route::get('customer/getCustomers','CustomerController@getCustomers'); //客户信息列表
    Route::post('customer/Customer/update','CustomerController@update'); //客户信息列表
    Route::get('customer/sourceCount','CustomerController@sourceCount'); //容量统计
    Route::get('customer/groupUser','CustomerController@groupUser');//分组人员
    Route::get('customer/getDepartments','CustomerController@getDepartments'); //分组详情
    //修改跟进记录
    Route::post('customer/follow/update','CustomerController@followUpdate' );
});
Route::get('customer/recommdPanyuan','CustomerController@panyuan');//推荐盘源
//创建发消息
Route::get('customer/create/{id}','CustomerController@customerCreateSendMessage');
Route::get('customer/sendMessage/{id}','CustomerController@sendMessage');
//分配到组的消息
Route::get('customer/distribution/{id}','CustomerController@distributionSendMessage');
//分配到人员的消息
Route::get('customer/member/{id}','CustomerController@memberSendMessage');
Route::get('customer/getSecondDepartUser','CustomerController@getSecondDepartUser');
Route::post('baidu','CustomerController@baiduForm')->name('baidu');
